export function getXAxis(data: any[]) {
  const map = new Map()
  data.forEach(it => {
    const { zkpid, jlrq } = it
      , item = map.get(jlrq) || { data: [it], cs: { [zkpid]: 0 }, max: 1 }
      , cs = item.cs[zkpid] = (item.cs[zkpid] || 0) + 1
    if (cs > item.max) {
      item.max = cs
      item.data.push(it)
    }
    it.jlrqcs = it.jlrq.split(/[\/-]/).slice(1).join('') + cs
    map.set(jlrq, item)
  })
  const arr = []
  map.values().forEach(({ data }) => arr.push(...data.map(({ jlrqcs }) => jlrqcs)))
  return arr
}